import mysql from "mysql2";
const pool = mysql.createPool({
  host: "47.103.89.196",
  user: "root",
  password: "wrr123456",
  waitForConnections: true,
  connectionLimit: 10,
  multipleStatements: true,

  database: "admin_node",
});

const query = (sql, values) => {
  return pool?.promise()?.query(sql, values);
};
const execute = (sql, values) => {
  return pool?.promise()?.execute(sql, values);
};
export default {
  query,
  execute,
};
